package com.example.first.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.first.entity.User;
import com.example.first.mapper.UserMapper;
import com.example.first.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserServiceImpl  extends ServiceImpl<UserMapper,User> implements IUserService{
       @Resource
       private UserMapper userMapper;
      public  boolean saveUser(User user){
          return saveOrUpdate(user);
      }


}
